package com.example.survey_determination.controller;

import com.example.survey_determination.service.TaskInfoService;
import entity.task_info;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (TaskInfo)表控制层
 *
 * @author makejava
 * @since 2022-01-06 09:45:03
 */
@CrossOrigin(methods = {RequestMethod.GET,RequestMethod.POST})
@RestController
@RequestMapping("taskInfo")
public class TaskInfoController {
    /**
     * 服务对象
     */
    @Resource
    private TaskInfoService taskInfoService;


    @RequestMapping("selectTask_info")
    public List<task_info> selectTask_info(Integer dispose_people_number){
        return this.taskInfoService.selectTask_info(dispose_people_number);
    }
    @RequestMapping("insert")
    public int insert(task_info task_info) {
        return this.taskInfoService.insert(task_info);
    }

    }

